var COMP_ADD = function(){
	_add(function(){
        $('#list').datagrid('reload');
	});
};
var COMP_UPDATE = function(id){
	_update(id,function(){
        $('#list').datagrid('reload');
	});
};
var COMP_DELETE = function(id){
	_delete(id,function(){
		$('#list').datagrid('reload');
	});
};
$(function(){
	//筛选
    $("#search").click(function(){
        _search();
    });
	//删除筛选条件
    _delcond(function(){
    	$('#list').datagrid('load',$("#condition").data('params')||{});
    });
});
